package cn.wolfcode.service;

import cn.wolfcode.domain.Permission;
import cn.wolfcode.qo.QueryObject;
import com.github.pagehelper.PageInfo;

import java.util.List;

public interface IPermissionService {
    void delete(Long id);

    //更新关联表数据
    void update(Permission permission, Long[] ids);

    //插入关联表数据
    void save(Permission permission, Long[] ids);

    Permission get(Long id);

    List<Permission> listAll();


    //分页功能
    PageInfo<Permission> query(QueryObject qo);

    void reload();

    List<Permission> selectByRoleId(Long id);
    //根据员工id查询员工的权限
    List<String> queryPermissionByEmpId(Long id);
}
